var configs = {};

configs.prices = {
    workdays: [
        {
            start: 9,
            end: 12,
            price: 30,
        },
        {
            start: 12,
            end: 18,
            price: 50,
        }, 
        {
            start: 18,
            end: 20,
            price: 80,
        },
        {
            start: 20,
            end: 22,
            price: 60,
        }
    ],

    weekends: [
         {
            start: 9,
            end: 12,
            price: 40,
        },
        {
            start: 12,
            end: 18,
            price: 50,
        },
        {
            start: 18,
            end: 22,
            price: 60,
        },
    ],
};

configs.punishs = {
    workdays: 0.5,
    weekends: 0.25,
};

configs.map = {
    1: "workdays",
    2: "workdays",
    3: "workdays",
    4: "workdays",
    5: "workdays",

    6: "weekends",
    0: "weekends",
};

configs.format = {
    userID: 0,
    date: 1,
    timeRange: 2,
    place: 3,
    cancelFlag: 4,
    
    keyJoin: "&&",
    timeJoin: "~",
    dateJoin: "-",
};

configs.patterns = {
    userPattern: /^(U[0-9]{3})$/,
    datePattern: /^([12]\d{3})-(0\d|1[0-2])-([0-2]\d|3[01])$/,
    timePattern: /^([01][0-9]:00|2[0-4]:00)~([01][0-9]:00|2[0-4]:00)$/,
    placePattern: /^[A-D]$/,
};

configs.places = ["A", "B", "C", "D"];

exports.configs = configs;


